package fylder.fish.utils;

import android.content.Context;

/**
 * Created by fylder on 15-11-2.
 */
public class DisplayUtils {

    /**
     * 从 dp 转成为 px
     */
    public static int dp2px(Context context, float dpValue) {
        final float scale = context.getResources().getDisplayMetrics().density;
        return (int) (dpValue * scale + 0.5f);
    }
}
